package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.redpacket.RedPacketSendByIdDto;
import com.uzai.console.dto.feign.usertakebal.CashierAppCheckDto;
import com.uzai.console.dto.feign.usertakebal.UserTakeBalQueryResultDto;
import com.uzai.console.dto.feign.usertakebal.UserTakeBalTransAccountDto;
import com.uzai.console.service.feign.impl.RedPacketFeignFallbackFactory;
import com.uzai.console.service.feign.impl.UserTakeBalFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: jianghan
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-user-server", fallbackFactory = UserTakeBalFeignFallbackFactory.class)
public interface UserTakeBalFeignService {

    /**
     * 提现支付宝转账
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param userTakeBalTransAccountDto
     */
    @PostMapping("/usertakebal/alipay")
    UzaiRespVo<Integer> alipay(@RequestBody UserTakeBalTransAccountDto userTakeBalTransAccountDto);

    /**
     * 提现微信发红包卡片
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param userTakeBalTransAccountDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/usertakebal/sendcard")
    UzaiRespVo<Boolean> sendcard(@RequestBody UserTakeBalTransAccountDto userTakeBalTransAccountDto);

    /**
     * 提现微信转账
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param userTakeBalTransAccountDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/usertakebal/wxpay")
    UzaiRespVo<Integer> wxpay(@RequestBody UserTakeBalTransAccountDto userTakeBalTransAccountDto);

    /**
     * 提现查询支付结果
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param userTakeBalQueryResultDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/usertakebal/query")
    UzaiRespVo<Boolean> queryResult(@RequestBody UserTakeBalQueryResultDto userTakeBalQueryResultDto);

    /**
     * 帐房配置检查
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param cashierAppCheckDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/cashier/app/check")
    UzaiRespVo<Boolean> cashierAppCheck(@RequestBody CashierAppCheckDto cashierAppCheckDto);


    /**
     * 提现微信红包
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param userTakeBalTransAccountDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/usertakebal/redpack")
    UzaiRespVo<Integer> redpack(@RequestBody UserTakeBalTransAccountDto userTakeBalTransAccountDto);

}
